/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jni;

import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.platform.win32.WinDef;
import com.sun.jna.platform.win32.WinUser;
import com.sun.jna.ptr.PointerByReference;

/**
 *
 * @author phat10130059
 */
public class User32DLL {

    static {
        Native.register("user32");
    }

    public static native int GetWindowThreadProcessId(WinDef.HWND hWnd, PointerByReference pref);

    public static native WinDef.HWND GetForegroundWindow();

    public static native int GetWindowTextW(WinDef.HWND hWnd, char[] lpString, int nMaxCount);
    
    public static native boolean EnumWindows(WinUser.WNDENUMPROC lpEnumFunc, Pointer arg);
    
}
